package com.bridge;

/**
 * @author zhupanlin
 * @version 1.0
 * @description: TODO
 * @date 2024/4/15 14:23
 */
public abstract class Phone {
    
    // 组合品牌
    private Brand brand;
    
    // 构造器
    public Phone(Brand brand){
        this.brand = brand;
    }
    
    protected void open(){
        this.brand.open();
    }

    protected void close(){
        this.brand.close();
    }

    protected void call(){
        this.brand.call();
    }
    
    
    
}
